/**
 * 
 */
package com.gmail.sabujdas.patterns.absfactory.model;

import com.gmail.sabujdas.patterns.absfactory.ChemicalType;

/**
 * @author Sabuj Das | sabuj.das@gmail.com
 *
 */
public abstract class Salt {

	private String name;
	private ChemicalType type;

	/**
	 * @param name
	 */
	public Salt(String name) {
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the type
	 */
	public ChemicalType getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(ChemicalType type) {
		this.type = type;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Salt [name=");
		builder.append(name);
		builder.append(", type=");
		builder.append(type);
		builder.append("]");
		return builder.toString();
	}

	
	
}
